package com.zhongke.cotrun.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhongke.cotrun.model.validator.UserValidator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel(value = "服务商补充信息表")
public class Facilitator {
    @NotNull(message = "id不能为空", groups = {UserValidator.UpDate.class})
    @ApiModelProperty(value = "id号（修改时候必填）", example = "123")
    private Integer facilitatorId;//服务商信息id
    @NotNull(message = "关联用户不能为空", groups = {UserValidator.InSet.class})
    @ApiModelProperty(value = "关联的用户id号（添加时候必填）", example = "123")
    private Integer linkUser;//关联用户id
    @NotNull(message = "申请描述不能为空", groups = {UserValidator.InSet.class})
    @ApiModelProperty(value = "申请描述（添加时候必填）")
    private String applicationDescription;//申请描述
    @ApiModelProperty(value = "主营业务简介（添加时候必填）")
    @NotBlank(message = "主营业务简介不能为空")
    private String description;//主营业务简介
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;//创建时间
    @ApiModelProperty(value = "跟新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;//跟新时间
    @ApiModelProperty(value = "备注")
    private String remark;//备注
    @ApiModelProperty(value = "审核状态")
    private Integer auditStatus;//审核状态 0待审核 1审核通过 2审核驳回


}
